CircleCI React Front-end Build
This uses the official Node orb to make use of its built in cache for npm install
. There are some other commands available such as node/run
however these must be used as jobs
, which meant I was unable to change the resource_class
value. It seemed to default to Large (4vCPU, 8gb) which is overkill for a simple build pipeline. By going for this more manual approach we can define a size for the resource.
If you're happy to use a larger resource, you can use the build in commands in your workflow: